package com.newsee.remote.materialclass;

import com.newsee.remote.common.bean.JsonResult;
import com.newsee.remote.ecommerce.service.IShMaterialclassService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liangzhi.chen
 * @description 物料分类推送接口
 * @date 2019/11/18 上午 10:22
 **/
@Slf4j
@RestController
@RequestMapping("/sap/material/class")
public class MaterClassController {

    @Autowired
    private IShMaterialclassService iShMaterialclassService;

    @ApiOperation(value = "物料分类数据增量推送接口")
    @PostMapping
    public JsonResult pushMaterialClass(@RequestParam(required = false) String startTime, @RequestParam(required = false) String endTime) {
        return iShMaterialclassService.pushMaterialClass(startTime, endTime);
    }


}
